# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-google-cloud-logging
_pkgname=google-cloud-logging
pkgver=3.12.1
pkgrel=1
pkgdesc='Stackdriver Logging API client library.'
arch=('any')
url='https://pypi.org/project/google-cloud-logging/#files'
license=('Apache')
depends=('python' 'python-google-api-core' 'python-google-cloud-core')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('68deacebcdac024aee85960db78c924ba403f30d985c5a5aecf3bc5c90cf8a2dafdb3ac8c849d5588e9f4bbeb7760e2afa5ed1033759f65bd90edf2cd3c1f096')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

